﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MbWsClient.ServiceClasses;

namespace MbWsClient.Classes
{
    public class Item : BasicItem
    {
        private Metadata _metadata;

        public Item(BasicItem item)
        {
            base.Id = item.Id;
            base.Name = item.Name;
            base.Type = item.Type;
            base.TypeName = item.TypeName;
            ImageDictionary = new ImageDictionary(item.Id);
        }

        public ImageDictionary ImageDictionary { get; set; }

        public Metadata Metadata
        {
            get
            {
                if (_metadata == null)
                {
                    _metadata = new Metadata(base.Id);
                }
                return _metadata;
            }
        }
    }
}
